package top.javai.www.quartz;

import org.quartz.*;
import top.javai.www.dao.TestTableDAO;

import javax.annotation.Resource;

@DisallowConcurrentExecution//会不允许并发执行,(如果每1s触发一次,但每个job要执行3秒)
public class MyJob implements Job {
    @Resource
    TestTableDAO testTableDAO;




    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("quartz is start!");
    }
}
